package com.grid.entity;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class Mission {
    private final StringProperty reporter;    // 反馈人
    private final StringProperty phone;      // 手机号
    private final StringProperty grid;       // 网格
    private final StringProperty location;   // 详细地址
    private final StringProperty level;      // 预估等级
    private final StringProperty description;//// 信息描述
    private final StringProperty year;
    private final StringProperty month;
    private final StringProperty day;

    public Mission(String reporter, String phone, String grid,
                   String location, String level, String description,String year,String month,String day) {
        this.reporter = new SimpleStringProperty(reporter);
        this.phone = new SimpleStringProperty(phone);
        this.grid = new SimpleStringProperty(grid);
        this.location = new SimpleStringProperty(location);
        this.level = new SimpleStringProperty(level);
        this.description = new SimpleStringProperty(description);
        this.year = new SimpleStringProperty(year);
        this.month = new SimpleStringProperty(month);
        this.day = new SimpleStringProperty(day);
    }

    // Getter和Setter方法
    public String getReporter() { return reporter.get(); }
    public void setReporter(String value) { reporter.set(value); }
    public StringProperty reporterProperty() { return reporter; }

    public String getPhone() { return phone.get(); }
    public void setPhone(String value) { phone.set(value); }
    public StringProperty phoneProperty() { return phone; }

    public String getGrid() { return grid.get(); }
    public void setGrid(String value) { grid.set(value); }
    public StringProperty gridProperty() { return grid; }

    public String getLocation() { return location.get(); }
    public void setLocation(String value) { location.set(value); }
    public StringProperty locationProperty() { return location; }

    public String getLevel() { return level.get(); }
    public void setLevel(String value) { level.set(value); }
    public StringProperty levelProperty() { return level; }

    public String getDescription() { return description.get(); }
    public void setDescription(String value) { description.set(value); }
    public StringProperty descriptionProperty() { return description; }

    public String getYear() {
        return year.get();
    }
    public String getMonth() {
        return month.get();
    }
    public String getDay(){
        return day.get();
    }
}